<script lang="ts">
import {defineComponent, h, onMounted} from "vue";
import {useRouter, useRoute} from "vue-router";

export default defineComponent({
    setup() {
        const router = useRouter()
        const route = useRoute()
        const {params, query} = route
        const {path} = params
        onMounted(()=>{
            debugger
            router.replace({path: '/' + path, query})
        })
        return{}
    },
    render(){
        return h('div',{},'')
    }
})
</script>

